﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Littlebeer.ConnectionStringHelper.SqlClient
{
    /// <summary>
    /// 
    /// </summary>
    public class SqlConnection
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="server"></param>
        /// <param name="dataBase"></param>
        /// <returns></returns>
        public static string Get(string server, string dataBase)
        {
            string result = string.Format(@"Server={0};Database={1};Trusted_Connection=True;", server, dataBase);
            return result;
        }
        public static string Get(string server, string dataBase, string user, string password)
        {
            string result = string.Format(@"Server={0};Database={1};User Id={2};Password={3};", server, dataBase,user,password);
            return result;
        }
    }
}
